public class test {
    public static void main(String[] args) {
        int[] a = {88, 99, 78, 84, 100, 32, 324, 324, 453, 46, 21, 123, 324, 534, 5346, 54, 834, 2131, 3, 342, 123, 13, 23};
        //求平均值
        int sum = 0;
        for (int i = 0; i < a.length; i++) {
            sum = sum + a[i];
        }
            System.out.println("数组总共有" + a.length + "个数，平均值：" + sum / a.length);

        }
    }